package com.itheima.health.service;

import com.itheima.health.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderService {
    /**
     * @Author: 位帅帅
     * @Date: 20:05 2021/1/10
     * @Params: [order]
     * @RerurnType: com.itheima.health.pojo.Order
     * @Description: 添加预约信息
    */
    Order add(Order order);

    /**
     * @Author: 位帅帅
     * @Date: 20:19 2021/1/10
     * @Params: [id]
     * @RerurnType: com.itheima.health.pojo.Order
     * @Description: 根据id查询预约信息
    */
    Order findById(Integer id);

    /**
     * @Author: 位帅帅
     * @Date: 20:09 2021/1/14
     * @Params: []
     * @RerurnType: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @Description: 统计预约信息
    */
    List<Map<String, Object>> findSetmealCount();
}
